<?php

namespace app\model\scope;

trait ScopeStatus
{
    public function scopeStatus($query, $status=1)
    {
        return $query->where('status', '=', $status);
    }
}